package cn.com.ylg.yang_lbs_20170301;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by MyPC on 2017/3/1.
 */

public class LoginActivity extends AppCompatActivity {
    @Bind(R.id.helloword)
    TextView helloword;
    @Bind(R.id.fenlei)
    TextView fenlei;
    @Bind(R.id.shikuang)
    TextView shikuang;
    @Bind(R.id.duobian)
    TextView duobian;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.helloword, R.id.fenlei,R.id.zuobiao,R.id.duobian})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.helloword:
                Intent intent = new Intent(this, MainActivity.class);
                startActivity(intent);
                break;
            case R.id.fenlei:
                Intent intent2 = new Intent(this, MapTypeActivity.class);
                startActivity(intent2);
                break;
            case R.id.zuobiao:
                Intent intent3 = new Intent(this,MarkerActivity.class);
                startActivity(intent3);
                break;
            case R.id.duobian:
                Intent intent4 = new Intent(this,GeometricActivity.class);
                startActivity(intent4);
                break;

        }
    }

    @OnClick(R.id.shikuang)
    public void onClick() {
        Intent intent = new Intent(this,TrafficActivity.class);
        startActivity(intent);
    }
}
